package com.gzhryc.weixin.gzh.msg;

/**
 * 创建二维码
 * @author 张浩
 * @version 2016-12-4
 */
public class CreateBarcodeRequest {
	
	public final static String ACTION_NAME_1 = "QR_SCENE";				//临时
	public final static String ACTION_NAME_2 = "QR_LIMIT_SCENE";		//永久
	public final static String ACTION_NAME_3 = "QR_LIMIT_STR_SCENE";	//永久字符串

	protected Long expire_seconds;   //二维码有效时间，以秒为单位。 最大不超过2592000（即30天），此字段如果不填，则默认有效期为30秒。
	protected String action_name;	 //二维码类型，QR_SCENE为临时,QR_LIMIT_SCENE为永久,QR_LIMIT_STR_SCENE为永久的字符串参数值
	protected ActionInfo action_info;
	
	public Long getExpire_seconds() {
		return expire_seconds;
	}

	public void setExpire_seconds(Long expire_seconds) {
		this.expire_seconds = expire_seconds;
	}

	public String getAction_name() {
		return action_name;
	}

	public void setAction_name(String action_name) {
		this.action_name = action_name;
	}

	public ActionInfo getAction_info() {
		return action_info;
	}

	public void setAction_info(ActionInfo action_info) {
		this.action_info = action_info;
	}

	public static class ActionInfo {
		
		protected Scene scene;

		public Scene getScene() {
			return scene;
		}

		public void setScene(Scene scene) {
			this.scene = scene;
		}
	}
	
	public static interface Scene {}

	public static class SceneId implements Scene{
		
		protected Integer scene_id;

		public Integer getScene_id() {
			return scene_id;
		}

		public void setScene_id(Integer scene_id) {
			this.scene_id = scene_id;
		}
	}
	
	public static class SceneStr implements Scene{
	
		protected String scene_str;

		public String getScene_str() {
			return scene_str;
		}

		public void setScene_str(String scene_str) {
			this.scene_str = scene_str;
		}
	}
}	
